home *** CD-ROM | disk | FTP | other *** search
- package component
- {
- import flash.accessibility.*;
- import flash.debugger.*;
- import flash.display.*;
- import flash.errors.*;
- import flash.events.*;
- import flash.external.*;
- import flash.filters.*;
- import flash.geom.*;
- import flash.media.*;
- import flash.net.*;
- import flash.printing.*;
- import flash.profiler.*;
- import flash.system.*;
- import flash.text.*;
- import flash.ui.*;
- import flash.utils.*;
- import flash.xml.*;
- import mx.binding.*;
- import mx.containers.Canvas;
- import mx.controls.Button;
- import mx.controls.TextArea;
- import mx.core.UIComponentDescriptor;
- import mx.core.mx_internal;
- import mx.events.PropertyChangeEvent;
- import mx.styles.*;
-
- public class quitandsave extends Canvas
- {
-
-
- private var _1279186702dontsavebtn:Button;
-
- private var _documentDescriptor_:UIComponentDescriptor;
-
- private var _347210731backbtn:Button;
-
- private var _1872818111savebtn:Button;
-
- public function quitandsave()
- {
- _documentDescriptor_ = new UIComponentDescriptor({
- "type":Canvas,
- "propertiesFactory":function():Object
- {
- return {
- "width":624,
- "height":48,
- "childDescriptors":[new UIComponentDescriptor({
- "type":Button,
- "id":"dontsavebtn",
- "propertiesFactory":function():Object
- {
- return {
- "x":213,
- "y":7,
- "label":"Don\'t save",
- "width":97,
- "height":33
- };
- }
- }),new UIComponentDescriptor({
- "type":Button,
- "id":"backbtn",
- "propertiesFactory":function():Object
- {
- return {
- "x":375,
- "y":7,
- "label":"Back",
- "height":33,
- "width":70
- };
- }
- }),new UIComponentDescriptor({
- "type":TextArea,
- "stylesFactory":function():void
- {
- this.backgroundAlpha = 0;
- this.borderStyle = "none";
- },
- "propertiesFactory":function():Object
- {
- return {
- "x":10,
- "y":7,
- "editable":false,
- "text":"Your level update will be lost if ou don\'t save !",
- "height":34
- };
- }
- }),new UIComponentDescriptor({
- "type":Button,
- "id":"savebtn",
- "propertiesFactory":function():Object
- {
- return {
- "x":497,
- "y":7,
- "label":"Save",
- "height":33,
- "width":70
- };
- }
- })]
- };
- }
- });
- super();
- mx_internal::_document = this;
- this.width = 624;
- this.height = 48;
- this.styleName = "MenuCanvas";
- }
-
- public function set backbtn(param1:Button) : void
- {
- var _loc2_:Object = this._347210731backbtn;
- if(_loc2_ !== param1)
- {
- this._347210731backbtn = param1;
- this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"backbtn",_loc2_,param1));
- }
- }
-
- [Bindable(event="propertyChange")]
- public function get dontsavebtn() : Button
- {
- return this._1279186702dontsavebtn;
- }
-
- override public function initialize() : void
- {
- mx_internal::setDocumentDescriptor(_documentDescriptor_);
- super.initialize();
- }
-
- [Bindable(event="propertyChange")]
- public function get backbtn() : Button
- {
- return this._347210731backbtn;
- }
-
- public function set dontsavebtn(param1:Button) : void
- {
- var _loc2_:Object = this._1279186702dontsavebtn;
- if(_loc2_ !== param1)
- {
- this._1279186702dontsavebtn = param1;
- this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"dontsavebtn",_loc2_,param1));
- }
- }
-
- public function set savebtn(param1:Button) : void
- {
- var _loc2_:Object = this._1872818111savebtn;
- if(_loc2_ !== param1)
- {
- this._1872818111savebtn = param1;
- this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"savebtn",_loc2_,param1));
- }
- }
-
- [Bindable(event="propertyChange")]
- public function get savebtn() : Button
- {
- return this._1872818111savebtn;
- }
- }
- }
-